PDF.co icon

PDF.co

Automate document workflows with OCR, AI invoice parsing, data extraction, conversion, form filling, merging/splitting, and barcode processing. Ideal for invoices, forms, and scanned files.

Search in PDF

AI-generated

Summary

Searches a PDF at the supplied URL for the specified text and returns the PDF.co search result. Configure regular-expression search, page selection, and advanced processing options as needed.

Inputs

  • Authentication (required) — Choose OAuth2 or API Key authentication.
  • PDF URL (required) — URL of the source PDF.
  • Search Query (required) — Text to find in the PDF.
  • Use Regular Expressions — Enable regular expressions for more complex search patterns; defaults to false.
  • Pages — Page selection using zero-based page numbers and ranges, such as 0,1-2,5,7-; defaults to the first page (0). Negative values count from the end.
  • Advanced Options — Optional processing settings: custom profile JSON, output file name, HTTP credentials for the source URL, inline output (default true), output link expiration in minutes (default 60), PDF password, callback URL, and word matching mode (SmartMatch by default, ExactMatch, or None).

Output shape

A single PDF.co response record containing the search result.

The operation may return output inline or provide it through a link, depending on the Inline setting; a callback URL can also be configured to receive output data.

Links

Discussion